import java.util.ArrayList;
import java.util.List;

/**
 * @author 35326
 * 2021/3/21 18:22
 * 自定义泛型类
 */
public class GenericClass<T> {

	public <E> List<E> copyArrayToList(E... t){
		return new ArrayList<E>();
	}
	T name;
	String desc;

	public T getName() {
		return name;
	}

	public void setName(T name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public static void main(String[] args) {
		List<? extends Fruit> list = new ArrayList<Apple>();
		list.add(null);
	}
}

class Son<T> extends GenericClass<T>{

}

class Fruit{}
class Apple extends Fruit{}
class Orange extends Fruit{}


